# Compiler
CC=g++
# Flags
CFLAGS=-o
# Code File
FILE=main.cpp
# Executable
EXEC=rcpsp
# Libraries
LIBS=-lpthread
# Output File
OUT=Output/output.dat
# Thread Number
THR = 2
all:
	$(CC) $(FILE) $(CFLAGS) $(EXEC) $(LIBS)
clean:
	rm rcpsp
	rm Output/*.dat 
min:
	for input in Input/Min/input*.dat;\
	do\
		echo $$input;\
		./$(EXEC) -c $$input -o $(OUT) -t $(THR);\
	done;\
max:
	for input in Input/Max/input*.dat;\
	do\
		echo $$input;\
		./$(EXEC) -c $$input -o $(OUT) -t $(THR);\
	done;
smp:
	for nthreads in 2 4 8 12;\
	do\
		echo $$input;\
		./$(EXEC) -c Input/Max/input18.dat -o $(OUT) -t $$nthreads;\
	done;
numa:
	for nthreads in 2 4 8 16 32 64;\
	do\
		echo $$input;\
		./$(EXEC) -c Input/Max/input18.dat -o $(OUT) -t $$nthreads;\
	done;

	